import request from '@/utils/request'

export const QueryMyQuotaDetail = (page, pageSize) => {
  return request({
    url: '/v1/prse/quota/my/',
    method: 'get',
    params: {
      page: page,
      page_size: pageSize,
    },
  })
}

// 查询一个用户的最新瑞币
export const QueryUserLastQuota = (uid) => {
  return request({
    url: '/v1/prse/quota/last/',
    method: 'get',
    params: { uid },
  })
}

// 改变一个用户的瑞币情况
export const ChangeUserQuota = (data) => {
  return request({
    url: '/v1/prse/quota/change/',
    method: 'post',
    data,
  })
}
